<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>CSS 2.1 Test Suite: Replaced Elements</title>
  <style type="text/css"><![CDATA[
   p { color: navy; }
   div { margin: 1em; }
   img { display: block; margin-bottom: 5px; }
   span { color: blue; font: 15px Ahem; vertical-align: top; background: red; display: block; width: 1em; }
   .b img, .b span { font-size: 4em; height: 1em; }
  ]]></style>
  <link title="10.4 Minimum and maximum widths: &apos;min-width' and 'max-width'" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" rel="help"/>
  <link title="10.6.2 Inline replaced elements, block-level replaced elements in normal flow, &apos;inline-block' replaced elements in normal flow and floating replaced elements" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" rel="help"/>
 </head>
 <body>
  <p> There should be no red anywhere. </p>
  <p> There should be two identical squares after this line: </p>
  <div class="a">
   <img alt="FAIL: Replaced content did not get replaced." src="support/swatch-blue.png"/>
   <span>X</span>
  </div>
  <p> There should be two identical squares after this line: </p>
  <div class="b">
   <img alt="FAIL: Replaced content did not get replaced." src="support/swatch-blue.png"/>
   <span>X</span>
  </div>
 </body>
</html>